package com.Service;

import com.Bean.Provider;
import com.Common.Result;
import com.Dao.ProviderDao;
import org.junit.Test;

import java.util.List;

/**
 * @description:
 * @author: hkw14
 * @time: 2021/5/7 12:01
 */
public class ProviderService {
    ProviderDao providerDao = new ProviderDao();

    public Result getProviderList(){
        List<Provider> providerList = providerDao.getProviderList();
        Result result = new Result(providerList);
        return result;
    }


    @Test
    public void test(){
        ProviderService providerService = new ProviderService();
        Result providerList = providerService.getProviderList();
        List data = (List)providerList.getData();
        System.out.println(data);
    }
}
